//
//  ViewController.m
//  ZXLSign
//
//  Created by awh on 2020/11/8.
//

#import "ViewController.h"
#import "ZXLSecrityManager.h"
#import "ZXLAPI.h"
#import "ZXLCustom.h"
#import "AspectsTool.h"
#import "ZXLNetWorking.h"
#import "ZXLSessionManager.h"
#import "AFHTTPSessionManager.h"
@interface ViewController ()
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    [AspectsTool zxl_AspectsWithClassName:@"AFHTTPSessionManager" Selector:@selector(dataTaskWithHTTPMethod:URLString:parameters:headers:uploadProgress:downloadProgress:success:failure:) Options:ZXLAspectPositionBefore UsingBlock:^(AspectsTool * _Nonnull info, NSError * _Nonnull error) {
//    
////        [self.requestSerializer setValue:@"" forHTTPHeaderField:@""];
//        
//        NSLog(@"appdelegate在走的类方法:instance == %@\narguments == %@\n", NSStringFromClass([info.zxl_instance class]),info.zxl_arguments);
//
//    }];
//    AFHTTPSessionManager *  httpmanager =[AFHTTPSessionManager new];
//    [httpmanager dataTaskWithHTTPMethod:@"GET" URLString:@"https://sso.exexm.com/api/Ticket/V2" parameters:@"" headers:nil uploadProgress:^(NSProgress * _Nonnull uploadProgress) {
//            
//        } downloadProgress:^(NSProgress * _Nonnull downloadProgress) {
//            
//        } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//            
//        } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//            
//        }];
//    
    
//    ZXLSecrityManager  
    [ZXLNetWorking  getWithURLString:@"https://sso.exexm.com/api/Ticket/V2" parameters:@{@"a":@"123",@"b":@"321"} success:^(NSDictionary * _Nonnull responseObject) {
            
        } failure:^(NSError * _Nonnull error) {
            
    }];
    //init
//    [[ZXLSecrityManager sharedClient]setUserinfo:[ZXLUserInfo getUserInfo] Config:[ZXLConfig getConfig]];
//     id < SignProtocol> algorithm = [[AlgorithmTool alloc]init];
//    algorithm.MDConfig.SHAType;
//     [algorithm getMessageDigestString:@"123"];
  /*  id <SignProtocol> api  =[[ZXLAPI alloc]init];
//    [[ZXLSecrityManager sharedClient].apiManager getSignWith:@""];
     [api getSignWith:@""];

    ZXLCustom  * custom =[[ZXLCustom alloc]init];
    [custom getSignWith:@""];
//    AspectsTool  */

}
-(void)loadData{
    
//    ZXLSecrityManager.
}


@end
